package android.microblog.Data;

import android.graphics.drawable.Drawable;
import android.microblog.Common.MicroblogType;

public class UserInfo {
	public static final String ID = "_id";
	public static final String USERID = "userId";
	public static final String TOKEN = "token";
	public static final String TOKENSECRET = "tokenSecret";
	public static final String USERNAME = "userName";
	public static final String USERICON = "userIcon";

	private String id;
	private String userId;
	private String token;
	private String tokenSecret;
	private String userName;
	private Drawable userIcon;

	private MicroblogType type;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getTokenSecret() {
		return tokenSecret;
	}

	public void setTokenSecret(String tokenSecret) {
		this.tokenSecret = tokenSecret;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Drawable getUserIcon() {
		return userIcon;
	}

	public void setUserIcon(Drawable userIcon) {
		this.userIcon = userIcon;
	}

	public void setType(MicroblogType type) {
		this.type = type;
	}

	public MicroblogType getType() {
		return type;
	}

	@Override
	public String toString() {
		return new StringBuilder().append("id=" + this.id).append(
				"|userid=" + this.userId).append("|userName=" + this.userName)
				.append("|userIcon=" + this.userIcon).append(
						"|token=" + this.token).append(
						"|tokenSecret=" + this.tokenSecret).append(
						"|type=" + this.type).toString();
	}

}
